package com.zs.zcerp.entrance.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zs.zcerp.entrance.entity.AhHoliday;
import com.zs.zcerp.entrance.mapper.AhHolidayMapper;
import com.zs.zcerp.entrance.service.IAhHolidayService;
import org.springframework.stereotype.Service;

@DS("oracle2")
@Service
public class AhHolidayServiceImpl extends ServiceImpl<AhHolidayMapper, AhHoliday> implements IAhHolidayService {

    @Override
    public void saveAhHoliday(AhHoliday ahHoliday) {
        baseMapper.insert(ahHoliday);
    }

    @Override
    public Integer countByDate(AhHoliday ahHoliday) {
        return baseMapper.countByDate(ahHoliday);
    }

    @Override
    public String getAhHolidayId(Integer orgId) {
        return baseMapper.getAhHolidayId(orgId);
    }
}
